//
//  DYBaseRequest.h
//  DeyiLife
//
//  Created by dy on 15/5/19.
//  Copyright (c) 2015年 Deyi. All rights reserved.
//

#import "YTKRequest.h"

@interface DYBaseRequest : YTKRequest

@property (strong , nonatomic) NSString *requestUrl;

@property (strong, nonatomic) NSString *requestSign;
@property (strong, nonatomic) NSString *requestTs;
@property (strong,nonatomic) NSMutableDictionary *requestHeaderDic;
@property (strong,nonatomic) NSDictionary *requestPostDic;
@property (nonatomic,strong) NSMutableArray *postImages;
@property (nonatomic) NSInteger cacheTimeInt;
@property (nonatomic,strong) NSMutableData *postFileData;
@property (nonatomic,strong) NSString *postFileKeyName;
@property (nonatomic,strong) NSString *postFileType;
//@property (nonatomic, copy) void (^successDYCompletionBlock)(DYBaseRequest *);
//
//@property (nonatomic, copy) void (^errorDYCompletionBlock)
//    (DYBaseRequest *);
//
//@property (nonatomic, copy) void (^failureDYCompletionBlock)(DYBaseRequest *);

- (void)dyStartWithCompletionBlockWithSuccess:(void (^)(YTKBaseRequest *request))success
                                      error:(void (^)(YTKBaseRequest *request))error
                                    failure:(void (^)(YTKBaseRequest *request))failure;
- (void)dyBgStartWithCompletionBlockWithSuccess:(void (^)(YTKBaseRequest *request))success
                                        error:(void (^)(YTKBaseRequest *request))error
                                      failure:(void (^)(YTKBaseRequest *request))failure;
- (void)dyOtherStartWithCompletionBlockWithSuccess:(void (^)(YTKBaseRequest *request))success
                                          error:(void (^)(YTKBaseRequest *request))error
                                        failure:(void (^)(YTKBaseRequest *request))failure;
- (void)dyBgTimeUploadStartWithCompletionBlockWithSuccess:(void (^)(YTKBaseRequest *request))success
                                          error:(void (^)(YTKBaseRequest *request))error
                                        failure:(void (^)(YTKBaseRequest *request))failure;


@property (nonatomic, copy) void (^successBlock)(YTKBaseRequest *);
@property (nonatomic, copy) void (^errorBlock)(YTKBaseRequest *);
@property (nonatomic, copy) void (^failBlock)(YTKBaseRequest *);



- (NSDictionary *)requestHeaderFieldValueDictionary;

- (AFConstructingBlock)constructingBodyBlock;

//- (void)successBlock:(DYBaseRequest *)request;

@end
